import request from '@/utils/request'
import type { SkuData } from '../spu/type'
import type { CommonResponseData } from '@/api/user/type'
import type { PageData } from '../treadmark/types'

const enum Api {
  SKU_PAGE = '/sku/page',
}

export const reqSkuPage = (pageNo: number, pageSize: number) =>
  request.get<any, CommonResponseData<PageData<SkuData>>>(
    Api.SKU_PAGE + '?pageNo=' + pageNo + '&pageSize=' + pageSize
  )
